package com.hz.utils;

import java.util.regex.Pattern;

public class MacUtils {

    /**
     * 判断是否是合法MAC地址
     * @param mac
     * @return
     */
    public static boolean verificateMAC(String mac){
        String patternMac="^[A-F0-9]{2}([-:][A-F0-9]{2}){5}$";
        return Pattern.compile(patternMac).matcher(mac).find();
    }
}
